<?php
 
if (is_user_logged_in() && is_admin() ){
                       
    if (isset($_POST['reset_share-and-follow'])) {

        $shareAdminOptions = array(
                                'nujij'=>'',                            'nujij_share_text'=>'Share on nuJIJ',                          'nujij_popup_text'=>'Share this BLOG : TITLE on nuJIJ',
                                'bookmark'=>'',                         'bookmark_share_text'=>'Bookmark in Browser',                  'bookmark_popup_text'=>'Bookmark this BLOG : TITLE',
                                'sphinn'=>'',                           'sphinn_share_text'=>'Share this on sphinn',                   'sphinn_popup_text'=>'Share this BLOG : TITLE on sphinn',
                                'show_header' => 'true',                'iconset' => 'default',                  'follow_location'=>'right',             'background_color'=>'878787',
                                'twitter_text_suffix'=>'',
                                'border_color'=>'fff',                  'follow_color'=>'000',                   'extra_print_css'=>'',                  'content' => '',
                                'extra_css'=>'',                        'excluded_share_pages'=>'',              'list_style'=>'iconOnly',               'size'=>'32',
                                'spacing'=>'3',                         'add_content'=>'true',                   'add_follow'=>'true',                   'add_css'=>'true',
                                'post_rss'=>'yes',                      'facebook' => 'yes',                     'twitter'=>'yes',                       'stumble' => 'yes',
				'digg'=> 'yes',                         'reddit'=> 'yes',                        'hyves' => '',                          'delicious'=>'yes',
                                'print'=>'',                            'orkut'=>'',                             'myspace'=>'',                          'google_buzz'=>'',
                                'yahoo_buzz'=>'',                       'yahoo_buzz_link'=>'',                   'google_buzz_link'=>'',                 'youtube'=>'',
                                'linkedin'=>'',                         'dailymotion_link'=>'',                  'soundcloud_link'=>'',                  'foursquare_link'=>'',
                                'vkontakte_link'=>'',                   'plaxo_link'=>'',                        'coconex_link'=>'',                     'gowalla_link'=>'',
                                'xing_link'=>'',                        'twitter_suffix'=>'',                    'vimeo_link'=>'',                       'distance_from_top'=>'100',
                                'follow_list_spacing' =>'10',           'vkontakte'=>'',                         'mixx'=>'',                             'email'=>'',
                                'tumblr_link'=>'',                      'tumblr'=>'',                            'email_link'=>'',                       'email_body'=>'',
                                'facebook_link' => '',                  'twitter_link'=>'',                      'stumble_link' => '',                   'digg_link'=> '',
                                'reddit_link'=> '',                     'hyves_link' => '',                      'delicious_link'=>'',                   'orkut_link'=>'',
                                'deviantart_link'=>'',                  'bandcamp_link'=>'',                     'imdb_link'=>'',                        'itunes_link'=>'',
                                'moddb_link'=>'',                       'picasa_link'=>'',                       'sphinn_link'=>'',
                                'myspace_link'=>'',                     'rss_link'=>'',                          'newsletter_link'=>'',                  'follow_newsletter'=>'',
                                'cssid'=>'1',                           'add_follow_text'=>'true',               'word_value'=>'follow',                 'theme_support'=>'none',
                                'follow_list_style'=>'iconOnly',        'follow_facebook' => '',                 'follow_twitter'=>'',                   'follow_stumble' => '',
				'follow_digg'=> '',                     'follow_reddit'=> '',                    'follow_hyves' => '',                   'follow_delicious'=>'',
                                'follow_orkut'=>'',                     'follow_myspace'=>'',                    'follow_lastfm'=>'',                    'follow_flickr'=>'',
                                'lastfm'=>'',                           'follow_google_buzz'=>'',                'follow_linkedin'=>'',                  'follow_tumblr'=>'',
                                'follow_yelp'=>'',                      'follow_xfire'=>'',                      'follow_yahoo_buzz'=>'',                'follow_vkontakte'=>'',
                                'follow_plaxo'=>'',                     'follow_gowalla'=>'',                    'follow_xing'=>'',                      'twitter_text_default'=>'',
                                'follow_dailymotion'=>'',               'follow_soundcloud'=>'',                 'follow_vimeo'=>'',                     'follow_coconex' => '',
                                'follow_rss'=>'yes',                    'follow_youtube'=>'',                    'tab_size'=>'24',                       'css_images'=>'no',
                                'wp_post'=>'yes',                       'wp_page'=>'yes',                        'wp_home'=>'yes',                       'wp_archive'=>'yes',
                                'wp_author'=>'yes',                     'bit_ly'=>'',                            'bit_ly_code'=>'',                      'follow_foursquare'=>'',
                                'twitter_text'=>'clean',                'add_image_link'=>'true',                'default_email'=>'',                    'word_text'=>__('follow:','share-and-follow'),
                                'default_email_image'=>'',              'author_defaults'=>'authors',            'logo_image_url'=>'',                   'homepage_img'=>'logo',
                                'homepage_image_url'=>'',               'archive_img'=>'logo',                   'archive_image_url'=>'',                'page_image_url'=>'',
                                'post_image_url'=>'',                   'page_img' =>'logo',                     'post_img' =>'gravatar',                'share_text'=>__('share:','share-and-follow'),
                                'share'=>'no',                          'lastfm_link'=>'',                       'flickr_link'=>'',                      'linkedin_link'=>'',
                                'xfire_link'=>'',                       'yelp_link'=>'',                         'background_transparent'=>'no',         'border_transparent'=>'no',
                                'youtube_link'=>'',                     'css_print_excludes'=>'#menu, #navigation, #navi, .menu',
                                'follow_sphinn'=> '',                   'follow_itunes'=> '',                      'follow_bandcamp'=> '',               'follow_delicious'=> '',
                                'follow_imdb'=> '',                     'follow_picasa'=> '',                      'follow_moddb'=> '',                  'follow_deviantart'=> '',
                                'follow_posterous'=>'',                'follow_ya'=>'',                           'posterous_link'=>'',                  'ya_link'=>'',
                                'css_follow_images'=>'no',
                                'excluded_follow_pages'=>'','follow_page'=>'yes','follow_post'=>'yes','follow_archive'=>'yes','follow_home'=>'yes','follow_author'=>'yes',
                                'technorati',                           'technorati_share_text'=>__('Share on technorati','share-and-follow'),           'technorati_popup_text'=>__('Share this BLOG : TITLE on technorati','share-and-follow'),
                                'xing',                           'xing_share_text'=>__('Share on xing','share-and-follow'),           'xing_popup_text'=>__('Share this BLOG : TITLE on xing','share-and-follow'),
                                'follow_slideshare'=>'',                'slideshare_link_text'=>__('See my presentations','share-and-follow'), 'slideshare_link'=>'',
                                'posterous_link_text'=>__('Check my phone feed','share-and-follow'),
                                'wpsc_top_of_products_page'=>'no', 'wpsc_product_before_description'=>'no', 'wpsc_product_addon_after_descr'=>'no',
                                'follow_feedburner'=>'', 'feedburner_link'=>'', 'feedburner_link_text'=>__('Stay updated','share-and-follow'),
                                'follow_email'=>'', 'email_link_text'=>__('Sign up for emails','share-and-follow'), 'email_link'=>'',
                                'vkontakte_share_text'=>__('Share on vkontakte','share-and-follow'),
                                'mixx_share_text' =>__('Mixx it up','share-and-follow'),
                                'linkedin_share_text' =>__('Share on Linkedin','share-and-follow'),
                                'facebook_share_text' =>__('Recommend on Facebook','share-and-follow'),
                                'twitter_share_text' =>__('Tweet about it','share-and-follow'),
                                'tumblr_share_text' =>__('Tumblr it','share-and-follow'),
                                'stumble_share_text' =>__('Share with Stumblers','share-and-follow'),
                                'digg_share_text' =>__('Digg this post','share-and-follow'),
                                'reddit_share_text' =>__('share via Reddit','share-and-follow'),
                                'hyves_share_text' =>__('Tip on Hyves','share-and-follow'),
                                'delicious_share_text' =>__('Bookmark on Delicious','share-and-follow'),
                                'orkut_share_text' =>__('Share on Orkut','share-and-follow'),
                                'myspace_share_text' =>__('Share via MySpace','share-and-follow'),
                                'facebook_link_text' => __('Become my Facebook friend','share-and-follow'),
                                'twitter_link_text'=>__('Tweet with me','share-and-follow'),
                                'tumblr_link_text'=>__('Read my Tumbles.','share-and-follow'),
                                'xfire_link_text'=>__('Come on a mission','share-and-follow'),
                                'stumble_link_text' => __('Follow my Stumbles','share-and-follow'),
                                'hyves_link_text' => __('Become my friend on Hyves','share-and-follow'),
                                'orkut_link_text'=>__('Become Orkut Buddies','share-and-follow'),
                                'myspace_link_text'=>__('Become a myspace follower','share-and-follow'),
                                'foursquare_link_text'=>__('Follow me on FourSquare','share-and-follow'),
                                'soundcloud_link_text'=>__('Listen to my music','share-and-follow'),

                                'coconex_link_text'=>__('Connect with us','share-and-follow'),
                                'plaxo_link_text'=>__('Join my address book','share-and-follow'),
                                'vkontakte_link_text'=>__('Become Friends','share-and-follow'),
                                'gowalla_link_text'=>__('Follow my actions','share-and-follow'),
                                'xing_link_text'=>__('Connect with us','share-and-follow'),

                                'sphinn_link_text'=>__('Read my posts','share-and-follow'),
                                'itunes_link_text'=>__('Listen to me','share-and-follow'),
                                'deviantart_link_text'=>__('See my artwork','share-and-follow'),
                                'moddb_link_text'=>__('Gamer? my mods','share-and-follow'),
                                'picasa_link_text'=>__('See my pictures','share-and-follow'),
                                'bandcamp_link_text'=>__('Listen to the band','share-and-follow'),
                                'imdb_link_text'=>__('Read my reviews','share-and-follow'),
                                'delicious_link_text'=>__('See what I share','share-and-follow'),

                                'vimeo_link_text'=>__('Watch my videos','share-and-follow'),
                                'dailymotion_link_text'=>__('Tune to my channel','share-and-follow'),
                                'yahoo_buzz_share_text'=>__('Buzz it up','share-and-follow'),
                                'google_buzz_share_text'=>__('Buzz it up','share-and-follow'),
                                'yahoo_buzz_link_text'=>__('Follow me','share-and-follow'),
                                'lastfm_link_text'=>__('Check my tunes','share-and-follow'),
                                'google_buzz_link_text'=>__('Join my conversations','share-and-follow'),
                                'linkedin_link_text'=>__('Connect with me','share-and-follow'),
                                'yelp_link_text'=>__('Read reviews','share-and-follow'),
                                'flickr_link_text'=>__('See my photos','share-and-follow'),
                                'newsletter_link_text'=>__('Join the newsletter','share-and-follow'),
                                'rss_link_text'=>__('RSS','share-and-follow'),
                                'email_share_text'=>__('Tell a friend','share-and-follow'),
                                'email_body_text'=>__('here is a link to a site I really like. ','share-and-follow'),
                                'youtube_link_text'=>__('Subscribe to my YouTube Channel','share-and-follow'),
                                'post_rss_share_text'=>__('Subscribe to the comments on this post','share-and-follow'),
                                'print_share_text'=>__('Print for later','share-and-follow'),
                                'mixx_popup_text' => __('Share this BLOG : TITLE on Mixx','share-and-follow'),
                                'linkedin_popup_text' => __('Share this BLOG : TITLE on Linkedin','share-and-follow'),
                                'facebook_popup_text' => __('Recommend this BLOG : TITLE on Facebook','share-and-follow'),
                                'stumble_popup_text'=> __('Share this BLOG : TITLE with Stumblers','share-and-follow'),
                                'twitter_popup_text'=>__('Tweet this BLOG : TITLE on Twitter','share-and-follow'),
                                'tumblr_popup_text'=>__('Tumblr. this BLOG : TITLE ','share-and-follow'),
                                'delicious_popup_text'=>__('Bookmark this BLOG : TITLE on Delicious','share-and-follow'),
                                'vkontakte_popup_text'=>__('Share this BLOG : TITLE on vkontakte','share-and-follow'),
                                'digg_popup_text'=>__('Digg this BLOG : TITLE','share-and-follow'),
                                'reddit_popup_text'=>__('Share this BLOG : TITLE on Reddit','share-and-follow'),
                                'hyves_popup_text'=>__('Tip this BLOG : TITLE on Hyves','share-and-follow'),
                                'orkut_popup_text'=>__('Share this BLOG : TITLE on Orkut','share-and-follow'),
                                'myspace_popup_text'=>__('Share this BLOG : TITLE via MySpace','share-and-follow'),
                                'post_rss_popup_text'=>__('Follow this BLOG : TITLE comments','share-and-follow'),
                                'print_popup_text'=>__('Print this BLOG : TITLE for reading later','share-and-follow'),
                                'email_popup_text'=>__('Tell a friend about this BLOG : TITLE ','share-and-follow'),
                                'google_buzz_popup_text'=>__('Buzz up this BLOG : TITLE ','share-and-follow'),
                                'digg_link_text'=>__('Digg my stuff','share-and-follow'),'follow_digg'=>'',                      'digg_link'=>'',
                                'yahoo_buzz_popup_text'=>__('Buzz up this BLOG : TITLE ','share-and-follow'),);

        update_option('ShareAndFollowAdminOptions', $shareAdminOptions);
           ?> <div class="updated"><p><strong><?php _e("Settings Reset.", "shareAndFollow");?></strong></p></div>
           <p><?php _e("All setings have now been reset to installation defaults, your widget settings have not been effected.  You will need to re-add your follow links. <a href='options-general.php?page=share-and-follow.php'>Return to the adminstration page</a> to make the changes", "shareAndFollow");?></p>
           <?php
        }

    else {

    function getRightImage($value){
        switch($value){
        case "yahoo_buzz":
            $result = "yahoobuzz";
            break;
        case "stumble":
            $result = "stumbleupon";
            break;
        case "post_rss":
            $result = "rss";
            break;
        default:
            $result = $value;
      }
        echo $result;
  }
    function getRightTitle($value){
        switch($value){
        case "post_rss":
            $result = "rss comment feed";
            break;
        default:
            $result = $value;
      }
        return $result;
  }
$devOptions = $this->getAdminOptions();
                        //  get post variables
                        // array = name
                        //
                   
            if (isset($_POST['update_share-and-follow'])) {//save option changes

     $adminSettings = array('background_color','border_color','follow_location','follow_color','spacing','size','add_content','add_follow',
                        'add_css', 'list_style', 'follow_list_style','excluded_share_pages','css_images','extra_print_css','extra_css','add_image_link',
                        'default_email','default_email_image','author_defaults','logo_image_url','homepage_img','homepage_image_url','archive_img','archive_image_url',
                        'page_image_url','post_image_url','page_img','post_img','background_transparent','border_transparent','tab_size','share','share_text','cssid',
                        'word_text', 'add_follow_text', 'word_value','email','email_share_text','email_body_text','email_popup_text','print_share_text','print','css_print_excludes',
                        'theme_support','print_popup_text','rss_link_text','follow_rss','distance_from_top', 'follow_list_spacing','wp_page','wp_post', 'wp_author',
                        'wp_home','wp_archive', 'bit_ly_code','bit_ly','twitter_text', 'twitter_text_default','twitter_text_suffix','width_of_page_minimum',
                        'wpsc_top_of_products_page', 'wpsc_product_before_description', 'wpsc_product_addon_after_descr','css_follow_images',
                        'excluded_follow_pages','follow_page','follow_post','follow_archive','follow_home','follow_author',
                        );

         foreach ($adminSettings as $item){
            $devOptions[$item] = $_POST[$item];
        }

global $shareAndFollowFollowIcons ;
        foreach ($shareAndFollowFollowIcons as $item){
            $devOptions['follow_'.$item] = $_POST['follow_'.$item];
            $devOptions[$item.'_link'] = $_POST[$item.'_link'];
            $devOptions[$item.'_link_text'] = $_POST[$item.'_link_text'];
        }

                $shareIcons=array('digg', 'twitter', 'facebook', 'stumble', 'reddit', 'delicious', 'hyves','myspace', 'linkedin','mixx', 'email',
                            'print','google_buzz', 'yahoo_buzz', 'tumblr', 'orkut','vkontakte','sphinn','nujij','bookmark','post_rss','technorati','xing');
                foreach ($shareIcons as $item){
                        $devOptions[$item] = $_POST[$item];
                        $devOptions[$item.'_share_text'] = $_POST[$item.'_share_text'];
                        $devOptions[$item.'_popup_text'] = $_POST[$item.'_popup_text'];
                }

                if (isset($_POST['devloungeContent'])) {$devOptions['content'] = apply_filters('content_save_pre', $_POST['devloungeContent']);}
                update_option($this->adminOptionsName, $devOptions);?>
                <div class="updated"><p><strong><?php _e("Settings Updated.", "shareAndFollow");?></strong></p></div>
                <?php } ?>
                
<div class="wrap" >
    <div style="float:right; width:400px;padding:10px; background-color:#ccc;border:1px solid #666;margin:5px;"><p><?php _e('if your feeling lovely and really like this plug-in, do the right thing and buy us some beer.  It&#39;s usually &euro;4.50 here in Amsterdam for a pint, and we will give you a link from', 'share-and-follow') ?> <a href="http://share-and-follow.com/wordpress-plugin/donations">Share-and-Follow</a> for being so nice.</p>
    <p><?php _e('Not got any cash? then why not blog about the plugin or give us a <a href="http://wordpress.org/extend/plugins/share-and-follow/">rating on the Wordpress site</a>.... help to spread the love.','share-and-follow'); ?></p>
        <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
            <input type="hidden" name="cmd" value="_s-xclick">
            <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHRwYJKoZIhvcNAQcEoIIHODCCBzQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYAKh6xKR78vr8zCFULzqI3wRQ0hGBLUd3UoKSOw/1M/bb/hH/Exi7om+hNOqojhCmaD/Qyb6gWDaP/b+dorwmTtcZmjBndw0LVLjLA3+TCfISBcLBHmM+GL1la+TAsgata083xD+m/ol53slun5IiwtrHrbU0EyN+XUnU8c9fzXGDELMAkGBSsOAwIaBQAwgcQGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIDA3mwqPD3q6AgaB6ajRBH6G2XV2Cuim1p14AfOtdz76Z1Wd2wy1kiahX4uTA8Y7tUY8EHcY+rQ7Thmuhp7qZq4LMs5yFOwEueT4JXMiAHDVTAd5ZQB7oFAMxJS8VqOCHwLbIPUy9z1fmRY/YamrA1Sm6mUmHmZKZxubBtXGKjz5rCRsgi30Wky+C0zEKRMjtSkD8Bl3QFd64HxcschQLTFLM6hEnWmXfXSNaoIIDhzCCA4MwggLsoAMCAQICAQAwDQYJKoZIhvcNAQEFBQAwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMB4XDTA0MDIxMzEwMTMxNVoXDTM1MDIxMzEwMTMxNVowgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDBR07d/ETMS1ycjtkpkvjXZe9k+6CieLuLsPumsJ7QC1odNz3sJiCbs2wC0nLE0uLGaEtXynIgRqIddYCHx88pb5HTXv4SZeuv0Rqq4+axW9PLAAATU8w04qqjaSXgbGLP3NmohqM6bV9kZZwZLR/klDaQGo1u9uDb9lr4Yn+rBQIDAQABo4HuMIHrMB0GA1UdDgQWBBSWn3y7xm8XvVk/UtcKG+wQ1mSUazCBuwYDVR0jBIGzMIGwgBSWn3y7xm8XvVk/UtcKG+wQ1mSUa6GBlKSBkTCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTAwMzI5MTg0MDAxWjAjBgkqhkiG9w0BCQQxFgQUU2NmrWX67HKe4/WDJGpvzckRMRcwDQYJKoZIhvcNAQEBBQAEgYAsWAdOiLp62+tSRaCvoBQsbIiGd217XNkVHJtZV8dJBpoXaqm7SqnL571TA3XlzwRcLiyzY7MLYRCuzm9iVmMAAhSWcrj7X/Ot6+pGGQlBwOhLR2ol0GwHimoEW1hxw1YM44cOML24JAP39ILyOkxpl+upIOv1QQlVNt7SWUKJXQ==-----END PKCS7-----">
            <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG_global.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
            <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
        </form></div>
    
        <div style="margin-right:440px;min-height:220px">
        <h2><?php _e('Share and Follow Administration','share-and-follow'); ?></h2>
        <p><?php _e('Here you can administer either the Follow Tab, or the Share Links on a Post.  If you want to admin the sidebar widget,  you need to goto the ','share-and-follow'); ?><a href="widgets.php"><?php _e('widgets section.','share-and-follow'); ?></a></p> <p><?php _e(' However for the Follow widget to work with anything except RSS you will have to fill out the details below in the ','share-and-follow'); ?><a href="#enterlinks"><?php _e('follow section','share-and-follow'); ?></a></p>
        <p><?php _e('More','share-and-follow'); ?> <a href="http://share-and-follow.com/wordpress-plugin/" target="_blank"><?php _e('documentation','share-and-follow'); ?></a> <?php _e(' on how to use this plugin and it&#39;s options &#40;Share Widget, Follow Widget, Share on Posts, Shortcode in Post, Follow Tab, Theme Tags&#41;','share-and-follow'); ?></p>
        
        </div>

<style>
td img {vertical-align:bottom;}
th {text-align:left;}
td {vertical-align:top}
div.rounded {-moz-border-radius:15px;-webkit-border-radius:15px;padding:0 20px 20px 20px;background-color:white;border:solid 1px #333}
div.rounded table{border-collapse:collapse;}
div.rounded table thead tr th {padding:.2em .4em}
div.rounded table tbody tr td {}
table.logic {border:solid 1px #ccc;margin-bottom:20px}
table.logic tr th {padding:.2em .4em}
table.logic tr td {border:solid 1px #ccc;border-width: 1px 0 0 0;padding:.2em .4em}
table.logic tr td h4 {margin:0;}
Legend {border:solid 1px black}
</style>
        <form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
        <div style="float:left;width:580px;margin-right:10px;margin-top:20px;" class="rounded">
                <?php wp_nonce_field('update-options'); ?>
                <h1><?php _e('Share Icons Setup','share-and-follow'); ?></h1>
                <h3><?php _e('Allow Share Icons to be added to the End of a Post?','share-and-follow'); ?></h3>
                <input type="hidden" name="cssid" id="cssid" value="<?php echo ($devOptions['cssid']+1);?>" />
                
                <p><?php _e('Selecting &quot;No&quot; will disable the content from being added into the end of a post.','share-and-follow'); ?></p>
                <p><label for="devloungeAddContent_yes"><input type="radio" id="devloungeAddContent_yes" name="add_content" value="true" <?php if ($devOptions['add_content'] == "true") {_e('checked="checked"', "shareAndFollow");} ?> /> <?php _e('Yes','share-and-follow'); ?></label>&nbsp;&nbsp;&nbsp;&nbsp;
                <label for="devloungeAddContent_no"><input type="radio" id="devloungeAddContent_no" name="add_content" value="false" <?php if ($devOptions['add_content'] == "false") {_e('checked="checked"', "shareAndFollow");} ?>/> <?php _e('No','share-and-follow'); ?></label></p>
                <h3><?php _e('Where to show the share icons','share-and-follow'); ?></h3>
                <p><?php _e('Choose where on your site the share icons will be automatically added','share-and-follow'); ?></p>
                <?php $args = array ('wp_page'=>__('pages','share-and-follow'), 'wp_post'=>__('posts','share-and-follow'), 'wp_author'=>__ ('author pages','share-and-follow'), 'wp_home'=>__('home page','share-and-follow'), 'wp_archive'=>__('tags, archive or catagory page','share-and-follow'), ); ?>
                <?php foreach($args as $key=>$value){
                    ?>
                <input type="hidden" value="no" name="<?php echo $key; ?>" />
                <input type="checkbox" <?php if ( 'yes' == $devOptions[$key] ) {echo "checked=\"checked\"";} ?> name="<?php echo $key; ?>" value="yes" id="<?php echo $key; ?>"/><label for="<?php echo $key; ?>"><?php echo $value; ?></label><br />
                    <?php
                } ?>
                <label><?php _e('exclude these IDs :','share-and-follow'); ?></label><input type="text" name="excluded_share_pages" value="<?php echo $devOptions['excluded_share_pages']; ?>">
                <p><?php _e('exclude pages or posts by entering IDs as a comma separated list. i.e. 1, 2, 3, 4   (ideal for About and Contact page)','share-and-follow'); ?></p>
                <ul style="padding:0;margin:0">
                        <li style="float:left;width:50%;padding:0;margin:0">
                            <h3><label for="size"><?php _e('Size of Icons on Posts','share-and-follow'); ?></label></h3>
                            <select  name="size" id="size" style="width:12em">
                                <?php $args = array ('16','24','32','48','60') ?>
                                <?php foreach ($args as $sizeToShow) {?>
                                    <option value="<?php echo $sizeToShow; ?>" <?php if ($sizeToShow == $devOptions['size']) {echo 'selected="selected"';} ?>><?php echo $sizeToShow; ?>x<?php echo $sizeToShow; ?></option>
                                <?php } ?>
                            </select>
                        </li>
                         <li style="padding:1px 0 5px 0 ;margin:0 0 0 50%">
                            <h3><label for="list_style"><?php _e('Share icons display style','share-and-follow'); ?></label></h3>
                            <select id="list_style" name="list_style" style="width:12em">
                                    <option <?php if ( 'icon_text' == $devOptions['list_style'] ) echo 'selected="selected"'; ?> value="icon_text"><?php _e('Icon and Text','share-and-follow'); ?></option>
                                    <option <?php if ( 'text_only' == $devOptions['list_style'] ) echo 'selected="selected"'; ?> value="text_only"><?php _e('Text only','share-and-follow'); ?> </option>
                                    <option <?php if ( 'iconOnly' == $devOptions['list_style'] ) echo 'selected="selected"'; ?> value="iconOnly"><?php _e('Icon only','share-and-follow'); ?> </option>
                            </select>
                         </li>
                </ul>
                <ul style="padding:0;margin:0;clear:left;">
                        <li style="float:left;width:50%;padding:0;margin:0">
                            <h3><?php _e('Use CSS single images or Image Sprites?','share-and-follow'); ?></h3>
                            <p><label for="css_images_yes"><input type="radio" id="css_images_yes" name="css_images" value="yes" <?php if ($devOptions['css_images'] == "yes") {_e('checked="checked"', "shareAndFollow");} ?> /> <?php _e('CSS Single image','share-and-follow'); ?></label><br />
                            <label for="css_images_no"><input type="radio" id="css_images_no" name="css_images" value="no" <?php if ($devOptions['css_images'] == "no") {_e('checked="checked"', "shareAndFollow");} ?>/> <?php _e('CSS Sprites(default)','share-and-follow'); ?></label></p>
                            <p><?php _e('CSS sprites are massivly faster. CSS Single Images can be easily replaced with your own images','share-and-follow'); ?></p>
                         </li>
                         <li style="padding:1px 0 5px 0 ;margin:0 0 0 50%">
                            <h3><label for="spacing"><?php _e('Element spacing (in px)','share-and-follow'); ?> </label></h3>
                            <select  name="spacing" id="spacing" style="width:12em">
                                <?php for ( $counter = 0; $counter <= 10; $counter++) {?>
                                        <option value="<?php echo $counter; ?>" <?php if ($counter == $devOptions['spacing']) {echo 'selected="selected"';} ?>><?php echo $counter ?></option>
                                <?php } ?>
                            </select>
                         </li>
                </ul>
                
                <ul style="padding:0;margin:0;clear:left;">
                        <li style="float:left;width:50%;padding:0;margin:0;">
                            <h3><?php _e('Show heading prefix','share-and-follow'); ?></h3>
                            <label for="share_yes"><input type="radio" id="share_yes" name="share" value="yes" <?php if ($devOptions['share'] == "yes") {_e('checked="checked"', "shareAndFollow");} ?> /> <?php _e('Yes','share-and-follow'); ?></label>&nbsp;&nbsp;&nbsp;&nbsp;
                            <label for="share_no"><input type="radio" id="share_no" name="share" value="no" <?php if ($devOptions['share'] == "no" || empty($devOptions['share']) ) {_e('checked="checked"', "shareAndFollow");} ?>/> <?php _e('No','share-and-follow'); ?></label>
                        </li>
                        <li style="padding:1px 0 5px 0 ;margin:0 0 0 50%">
                            <h3><?php _e('Heading text','share-and-follow'); ?></h3>
                                <label for="share_text"><?php _e('Share text ','share-and-follow'); ?></label> <input type="text" name="share_text" value="<?php echo $devOptions['share_text']; ?>" id="share_text"/>
                        </li>
                </ul>
                <h3><?php _e('Share Links to display','share-and-follow'); ?></h3>
                <p><?php _e('The popup text uses two case sensitive keywords, they are <strong>BLOG</strong> &amp; <strong>TITLE</strong>. The word <strong>BLOG</strong> is replaced with the word "post" or "blog", and the word <strong>TITLE</strong> is automatically replaced with the full title of your blog or post. ','share-and-follow'); ?></p>
                <table>
                    <thead>
                        <tr>
                            <th style="width:12em"><?php _e('Show','share-and-follow'); ?></th><th><?php _e('Link text','share-and-follow'); ?></th><th><?php _e('Popup text','share-and-follow'); ?></th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php // setup sites to show automatically ?>
                        <?php $args = array('facebook','twitter', 'stumble','google_buzz','yahoo_buzz','digg', 'delicious','reddit', 'hyves','orkut', 'linkedin','myspace','mixx','nujij','sphinn','technorati','tumblr','vkontakte','xing','bookmark','post_rss','print',  ); ?>
                        <?php // loop through showing all items ?>
                        <?php foreach ($args as $siteToShow) {?>
                        <tr>
                            <td><img src="<?php echo WP_PLUGIN_URL; ?>/share-and-follow/default/16/<?php getRightImage($siteToShow); ?>.png" height="16px" width="16px" alt="<?php echo $siteToShow; ?>" />
                                <input type="hidden" name="<?php echo $siteToShow; ?>" value="no" id="<?php echo $siteToShow; ?>">
                                <input type="checkbox" <?php if ( 'yes' == $devOptions[$siteToShow] ) {echo "checked=\"checked\"";} ?> name="<?php echo $siteToShow; ?>" value="yes" id="<?php echo $siteToShow; ?>"><label for="<?php echo $siteToShow; ?>"><?php echo str_replace("_", " ",getRightTitle($siteToShow)) ; ?></label></td>
                            <td><input type="text" name="<?php echo $siteToShow; ?>_share_text" id="<?php echo $siteToShow; ?>_share_text" value="<?php echo stripslashes  ($devOptions[$siteToShow.'_share_text']);?>" style="width:200px"/></td>
                            <td><input type="text" name="<?php echo $siteToShow; ?>_popup_text" id="<?php echo $siteToShow; ?>_popup_text" value="<?php echo stripslashes  ($devOptions[$siteToShow.'_popup_text']);?>" style="width:200px"/></td>
                        </tr>
                        <?php } ?>
                        <tr>
                            <td><img src="<?php echo WP_PLUGIN_URL; ?>/share-and-follow/default/16/email.png" height="16px" width="16px" alt="post email" />
                                <input type="hidden" value="no" name="email" />
                                <input type="checkbox" <?php if ( 'yes' == $devOptions['email'] ) {echo "checked=\"checked\"";} ?> name="email" value="yes" id="_email"><label for="email">email</label></td>
                            <td><input type="text" name="email_share_text" id="email_share_text" value="<?php echo $devOptions['email_share_text'];?>" style="width:200px"/>
                               
                            </td>
                            <td><input type="text" name="email_popup_text" id="email_popup_text" value="<?php echo stripslashes  ($devOptions['email_popup_text']);?>" style="width:200px"/></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td colspan="2"><h4><?php _e('What it says in the email message','share-and-follow'); ?></h4>
                                <textarea name="email_body_text"  id="email_body_text"  style="width:350px" rows="3" cols="20" ><?php echo stripslashes($devOptions['email_body_text']);?></textarea></td>
                        </tr>
                    </tbody>
                </table>
                <ul style="padding:0;margin:0;clear:left;">
                  <li style="">
                  
                <h3><label for="add_short"><?php _e('Setup short URLs for twitter','share-and-follow'); ?></label></h3>
                <?php if (function_exists('json_decode')){ ?>
                <label for="bit_ly"><?php _e('Bit.ly user name','share-and-follow'); ?>&nbsp;</label> <input type="text" name="bit_ly" value="<?php echo $devOptions['bit_ly']; ?>" id="bit_ly"/><br />
                <label for="bit_ly_code"><?php _e('Bit.ly API Code','share-and-follow'); ?>&nbsp;&nbsp;&nbsp;</label> <input type="text" name="bit_ly_code" value="<?php echo $devOptions['bit_ly_code']; ?>" id="bit_ly_code"/><br />
                <p><?php _e('Setting up a <a href="http://bit.ly/a/sign_up">bit.ly account</a> and entering the details above, the system will automatically make URLs short for sharing on twitter.','share-and-follow'); ?></p><br />

                <?php }
                else {_e("Sorry, but you can't have short URLs until you upgrade your version of PHP to support JSON.  This means you need version PHP 5.2.0 or above to be installed on your server, please talk to your hosting company about it. ", 'share-and-follow');}
                ?>
                <h3><?php _e('What a tweets look like','share-and-follow'); ?></h3>
                <h4>Tweet Message</h4>
                 <input type="radio" <?php if ( 'clean' == $devOptions['twitter_text'] ) {echo "checked=\"checked\"";} ?> name="twitter_text" value="clean" ><label for="twitter_text"><?php _e('Just the URL','share-and-follow'); ?></label><br />
                 <input type="radio" <?php if ( 'title' == $devOptions['twitter_text'] ) {echo "checked=\"checked\"";} ?> name="twitter_text" value="title" ><label for="twitter_text"><?php _e('Title of the post or page and the URL','share-and-follow'); ?></label><br />
                 <b><?php _e('Default message to prefix the URL', 'share-and-follow') ?></b><br />
                 <input type="text" name="twitter_text_default" style="width:200px" value="<?php echo $devOptions['twitter_text_default']; ?>" />
                 <p><?php _e('Entering a message in here will make that the default for all tweets. If you add the custom field of "twitter_text" in a post, the value will be a unique message','share-and-follow'); ?></p>
                 <h4>Tweet Suffix <small>what it says after the tweet</small></h4>
                 <input type="text" name="twitter_text_suffix" style="width:200px"  value="<?php echo $devOptions['twitter_text_suffix']; ?>" />
                 <p><?php _e('Entering a message in here will make that the default for all tweets. The ideal way to use this is for adding "VIA @twittername" to the end of tweets automatically.  If you add the custom field of "twitter_suffix" in a post, the value will be a unique suffix for the tweet','share-and-follow'); ?></p>
                    </li>
                </ul>
                <input type="submit" name="update_share-and-follow" value="<?php _e('Update Settings', 'share-and-follow') ?>" />
            </div>
            <div style="float:left;width:580px;margin-top:20px;" class="rounded">
                    <?php wp_nonce_field('update-options'); ?>
                <h1><?php _e('Follow Side/Top/Bottom Tab setup','share-and-follow'); ?></h1>
                <h3><?php _e('Show the Follow Tab on Screen','share-and-follow'); ?></h3>
                <p><?php _e('Selecting "No" will disable the content from being added into to your website.','share-and-follow'); ?></p>
                <p><label for="add_follow_yes"><input type="radio" id="add_follow_yes" name="add_follow" value="true" <?php if ($devOptions['add_follow'] == "true") {_e('checked="checked"', "shareAndFollow");} ?> /><?php _e('Yes','share-and-follow'); ?></label>&nbsp;&nbsp;&nbsp;&nbsp;
                <label for="add_follow_no"><input type="radio" id="add_follow_no" name="add_follow" value="false" <?php if ($devOptions['add_follow'] == "false") {_e('checked="checked"', "shareAndFollow");} ?>/><?php _e('No','share-and-follow'); ?></label></p>
                <ul style="padding:0;margin:0">
                    <li style="padding:0;margin:0;clear:left;">
                         <h3><?php _e('Where to show the follow tab','share-and-follow'); ?></h3>
                         <p><?php _e('Choose where on your site the follow icons will be automatically added','share-and-follow'); ?></p>
                        <?php $args = array ('follow_page'=>__('pages','share-and-follow'), 'follow_post'=>__('posts','share-and-follow'), 'follow_author'=>__ ('author pages','share-and-follow'), 'follow_home'=>__('home page','share-and-follow'), 'follow_archive'=>__('tags, archive or catagory page','share-and-follow'), ); ?>
                        <?php foreach($args as $key=>$value){
                            ?>
                        <input type="hidden" value="no" name="<?php echo $key; ?>" />
                        <input type="checkbox" <?php if ( 'yes' == $devOptions[$key] ) {echo "checked=\"checked\"";} ?> name="<?php echo $key; ?>" value="yes" id="<?php echo $key; ?>"/><label for="<?php echo $key; ?>"><?php echo $value; ?></label><br />
                            <?php
                        } ?>
                        <label><?php _e('exclude these IDs :','share-and-follow'); ?></label><input type="text" name="excluded_follow_pages" value="<?php echo $devOptions['excluded_follow_pages']; ?>">
                        <p><?php _e('exclude pages or posts by entering IDs as a comma separated list. i.e. 1, 2, 3, 4   (ideal for homepage when you have a splash page, or part of your buy process.)','share-and-follow'); ?></p>

                        </li>
                    <li style="float:left;width:50%;padding:0;margin:0">
                        <h3><?php _e('Background Color','share-and-follow'); ?></h3>
                        <div id="colorSelector"></div>
                                
                               #<input type="text" name="background_color" id="background_color" value="<?php echo $devOptions['background_color'];?>"/><br />
                               <input type="hidden" name="background_transparent" value="no" />
                               <input type="checkbox" <?php if ( 'yes' == $devOptions['background_transparent'] ) {echo "checked=\"checked\"";} ?> name="background_transparent" value="yes" id="background_transparent"> <label for="background_transparent"><?php _e('Transparent','share-and-follow'); ?></label></li>
                    <li  style="padding:1px 0 5px 0 ;margin:0 0 0 50%">
                        <h3><?php _e('Border Color','share-and-follow'); ?></h3>
                                
                               #<input type="text" name="border_color" id="border_color" value="<?php echo $devOptions['border_color'];?>"/> <br />
                                <input type="hidden" name="border_transparent" value="no" />
                               <input type="checkbox" <?php if ( 'yes' == $devOptions['border_transparent'] ) {echo "checked=\"checked\"";} ?> name="border_transparent" value="yes" id="border_transparent"><label for="border_transparent"><?php _e('No Border','share-and-follow'); ?></label></li>
                </ul>
                <p style="padding:0;margin:0;font-size:small;clear:left;"><?php _e('for example <b>#f60</b> is entered as <b>f60</b> or <b>#ff6600</b> becomes <b>ff6600</b>, clicking <b>Transparent</b> will make the tab have no color and <b>no border</b> will set the border to disapear','share-and-follow'); ?>.</p>
                 <ul style="padding:0;margin:0">
                        <li style="float:left;width:50%;padding:0;margin:0">
                            <h3><label for="follow_location"><?php _e('Follow Tab Location','share-and-follow'); ?> </label></h3>
                            <select  name="follow_location" id="follow_location" style="width:12em">
                            <option value="right" <?php if ("right" == $devOptions['follow_location'] ) {echo 'selected="selected"';} ?>  ><?php _e('Right','share-and-follow'); ?></option>
                            <option value="left" <?php if ("left" == $devOptions['follow_location']) {echo 'selected="selected"';} ?>><?php _e('Left','share-and-follow'); ?></option>
                            <option value="bottom" <?php if ("bottom" == $devOptions['follow_location']) {echo 'selected="selected"';} ?>><?php _e('Bottom','share-and-follow'); ?></option>
                            <option value="top" <?php if ("top" == $devOptions['follow_location']) {echo 'selected="selected"';} ?>><?php _e('Top','share-and-follow'); ?></option>
                            </select>
                        </li>
                        <li  style="padding:1px 0 5px 0 ;margin:0 0 0 50%">
                            <h3><?php _e('Prefix with a heading','share-and-follow'); ?></h3>
                            <p><label for="add_follow_text_yes"><input type="radio" id="add_follow_text_yes" name="add_follow_text" value="true" <?php if ($devOptions['add_follow_text'] == "true") {_e('checked="checked"', "shareAndFollow");} ?> /><?php _e('Yes','share-and-follow'); ?></label>&nbsp;&nbsp;&nbsp;&nbsp;
                                <label for="add_follow_text_no"><input type="radio" id="add_follow_text_no" name="add_follow_text" value="false" <?php if ($devOptions['add_follow_text'] == "false") {_e('checked="checked"', "shareAndFollow");} ?>/><?php _e('No','share-and-follow'); ?></label></p>
                        </li>
                        
                        <li style="padding:0;margin:0;width:48%;float:left;">
                            <h3><?php _e('Use CSS single images or Image Sprites?','share-and-follow'); ?></h3>
                            <p><label for="css_follow_images_yes"><input type="radio" id="css_follow_images_yes" name="css_follow_images" value="yes" <?php if ($devOptions['css_follow_images'] == "yes") {_e('checked="checked"', "shareAndFollow");} ?> /> <?php _e('CSS Single image','share-and-follow'); ?></label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
                            <label for="css_follow_images_no"><input type="radio" id="css_follow_images_no" name="css_follow_images" value="no" <?php if ($devOptions['css_follow_images'] == "no") {_e('checked="checked"', "shareAndFollow");} ?>/> <?php _e('CSS Sprites(default)','share-and-follow'); ?></label></p>
                            <p><?php _e('CSS sprites are massivly faster. CSS Single Images can be easily replaced with your own images','share-and-follow'); ?></p>
                         </li>
                         <li  style="padding:1px 0 5px 0 ;margin:0 0 0 50%">
                           <h3><label for='width_of_page_minimum'><?php _e('Minimum width of screen','share-and-follow'); ?> </label></h3>
                            <input type="text" name='width_of_page_minimum' id='width_of_page_minimum' value="<?php echo $devOptions['width_of_page_minimum']; ?>" />px
                            <p><?php _e('If you set this, it will use a bit of javascript to remove the Right or Left tab from the screen when the screen size is the same or smaller that the entered number.','share-and-follow'); ?></p>
                         </li>
                 </ul>
                    <ul style="padding:0;margin:0">
                        <li style="float:left;width:50%;padding:0;margin:0;clear:left;">
                            <h3><label for="follow_color"><?php _e('Follow Word Color','share-and-follow'); ?></label></h3>
                                <select  name="follow_color" id="follow_color" style="width:12em">
                                    <option value="f00" <?php if ("f00" == $devOptions['follow_color']){echo 'selected="selected"';} ?>><?php _e('Red','share-and-follow'); ?></option>
                                    <option value="f0f" <?php if ("f0f" == $devOptions['follow_color']){echo 'selected="selected"';} ?>><?php _e('Pink','share-and-follow'); ?></option>
                                    <option value="00f" <?php if ("00f" == $devOptions['follow_color']){echo 'selected="selected"';} ?>><?php _e('Blue','share-and-follow'); ?></option>
                                    <option value="fff" <?php if ("fff" == $devOptions['follow_color']){echo 'selected="selected"';} ?>><?php _e('White','share-and-follow'); ?></option>
                                    <option value="ccc" <?php if ("ccc" == $devOptions['follow_color']){echo 'selected="selected"';} ?>>#ccc</option>
                                    <option value="999" <?php if ("999" == $devOptions['follow_color']){echo 'selected="selected"';} ?>>#999</option>
                                    <option value="666" <?php if ("666" == $devOptions['follow_color']){echo 'selected="selected"';} ?>>#666</option>
                                    <option value="333" <?php if ("333" == $devOptions['follow_color']){echo 'selected="selected"';} ?>>#333</option>
                                    <option value="000" <?php if ("000" == $devOptions['follow_color']){echo 'selected="selected"';} ?>><?php _e('Black','share-and-follow'); ?></option>
                                </select>
                        </li>
                        <li style="padding:1px 0 5px 0 ;margin:15px 0 0 50%;">
                            <h3><?php _e('Follow Heading text replacement','share-and-follow'); ?></h3>
                            <p><label for="word_value"><?php _e('On screen text','share-and-follow'); ?></label> <input type="text" name="word_text" id="word_text" value="<?php echo $devOptions['word_text'];?>" style="width:150px"/></p>
                            <p><?php _e('Replacement Word','share-and-follow'); ?> <select  name="word_value" id="word_value" style="width:12em">
                                    <optgroup label="<?php _e('English words','share-and-follow'); ?>">
                                        <?php $eng = array ('follow'=>'follow','followme'=>'follow me','followus'=>'follow us','connect'=>'connect',
                                                            'communicate'=>'communicate','join'=>'join','network'=>'network','review'=>'review',) ?>
                                        <?php foreach ($eng as $key => $value) {?>
                                            <option value="<?php echo $key; ?>"  <?php if ($key == $devOptions['word_value'] ) {echo 'selected="selected"';} ?>><?php echo $value; ?></option>
                                        <?php } ?>
                                    </optgroup>
                                    <optgroup label="<?php _e('Dutch words','share-and-follow'); ?>">
                                        <?php $nld = array ('aansluiten'=>'aansluiten','deelnemen'=>'deelnemen','mededeling'=>'mededeling','overzichten'=>'overzichten','toevoegen'=>'toevoegen',
                                                            'verbinden'=>'verbinden','volgen'=>'volgen','volgmij'=>'volg mij','volgons'=>'volg ons','volgonze'=>'volg onze',); ?>
                                        <?php foreach ($nld as $key => $value) {?>
                                            <option value="<?php echo $key; ?>"  <?php if ($key == $devOptions['word_value'] ) {echo 'selected="selected"';} ?>><?php echo $value; ?></option>
                                        <?php } ?>
                                    </optgroup>
                                    <optgroup label="<?php _e('French words','share-and-follow'); ?>">
                                        <?php $fr = array ('ajouter'=>'ajouter','seconnecter'=>'se connecter','publications'=>'publications','rejoindre'=>'rejoindre','reseau'=>'r&eacute;seau','suivre'=>'suivre',); ?>
                                        <?php foreach ($fr as $key => $value) {?>
                                            <option value="<?php echo $key; ?>"  <?php if ($key == $devOptions['word_value'] ) {echo 'selected="selected"';} ?>><?php echo $value; ?></option>
                                        <?php } ?>
                                    </optgroup>
                                    <optgroup label="<?php _e('Portuguese words','share-and-follow'); ?>">
                                        <?php $pt = array ('conectar'=>'conectar','comunicar'=>'comunicar','juntar'=>'juntar','rede'=>'rede','resenhas'=>'resenhas','seguir'=>'seguir',
                                                            'sigame'=>'siga-me','siganos'=>'siga-nos',); ?>
                                        <?php foreach ($pt as $key => $value) {?>
                                            <option value="<?php echo $key; ?>"  <?php if ($key == $devOptions['word_value'] ) {echo 'selected="selected"';} ?>><?php echo $value; ?></option>
                                        <?php } ?>
                                    </optgroup>
                                    <optgroup label="<?php _e('Spanish words','share-and-follow'); ?>">
                                        <?php $es = array ('seguir'=>'seguir'); ?>
                                        <?php foreach ($es as $key => $value) {?>
                                            <option value="<?php echo $key; ?>"  <?php if ($key == $devOptions['word_value'] ) {echo 'selected="selected"';} ?>><?php echo $value; ?></option>
                                        <?php } ?>
                                    </optgroup>
                                </select>
                                </p>
                        </li>
                    </ul>
                    <p><?php _e('The text replacement only applies to the side tabs.  It has been made that way to give virtical text, but does limit the word choices.  Use a top or bottom tab to show the text that you want, not the replacement text.','share-and-follow')?></p>
                    <ul style="padding:0;margin:0">
                        <li style="float:left;width:50%;padding:0;margin:0">
                           <h3><label for="follow_list_style"><?php _e('Follow icons display style','share-and-follow'); ?></label></h3>
                            <select id="follow_list_style" name="follow_list_style" style="width:12em">
                                    <?php if ( $devOptions['follow_location'] == 'bottom'||$devOptions['follow_location'] == 'top'){?><option <?php if ( 'icon_text' == $devOptions['follow_list_style'] ) echo 'selected="selected"'; ?> value="icon_text"><?php _e('Icon and Text','share-and-follow'); ?></option><?php } ?>
                                    <?php if ( $devOptions['follow_location'] == 'bottom'||$devOptions['follow_location'] == 'top'){?><option <?php if ( 'text_only' == $devOptions['follow_list_style'] ) echo 'selected="selected"'; ?> value="text_only"><?php _e('Text only','share-and-follow'); ?> </option><?php } ?>
                                    <option <?php if ( 'text_replace' == $devOptions['follow_list_style'] ) echo 'selected="selected"'; ?> value="text_replace"><?php _e('Text replacement','share-and-follow'); ?></option>
                                    <option <?php if ( 'iconOnly' == $devOptions['follow_list_style'] ) echo 'selected="selected"'; ?> value="iconOnly"><?php _e('Icon only','share-and-follow'); ?> </option>
                            </select>
                       </li>
                        <li style="padding:1px 0 5px 0 ;margin:0 0 0 50%">
                            <h3><label for="tab_size"><?php _e('Size of Follow Icons on tab','share-and-follow'); ?></label></h3>
                            <select  name="tab_size" id="tab_size" style="width:12em">
                                <?php $args = array ('16','24','32','48','60') ?>
                                <?php foreach ($args as $sizeToShow) {?>
                                    <option value="<?php echo $sizeToShow; ?>" <?php if ($sizeToShow == $devOptions['tab_size']) {echo 'selected="selected"';} ?>><?php echo $sizeToShow; ?>x<?php echo $sizeToShow; ?></option>
                                <?php } ?>
                            </select>
                        </li>
                    </ul>


                    <ul style="padding:0;margin:0">
                        <li style="float:left;width:50%;padding:0;margin:0">
                           <h3><label for="follow_list_spacing"><?php _e('Follow tab icons spacing','share-and-follow'); ?></label></h3>
                            <select id="follow_list_spacing" name="follow_list_spacing" style="width:12em">
                                <?php   for ( $counter = 0 ; $counter <= 15; $counter += 1) { ?>
                                    <option value="<?php echo $counter; ?>" <?php if ($counter == $devOptions['follow_list_spacing']) {echo 'selected="selected"';} ?>><?php echo $counter; ?>px</option>
                                <?php } ?>
                            </select>
                       </li>
                        <li style="padding:1px 0 5px 0 ;margin:0 0 0 50%">
                            <h3><label for="distance_from_top"><?php _e('Side tab distance from top of screen','share-and-follow'); ?></label></h3>
                            <select  name="distance_from_top" id="distance_from_top" style="width:12em">
                                <?php for ( $counter = 0; $counter <= 200; $counter += 10) { ?>
                                    <option value="<?php echo $counter; ?>" <?php if ($counter == $devOptions['distance_from_top']) {echo 'selected="selected"';} ?>><?php echo $counter?>px</option>
                                <?php } ?>
                            </select>
                        </li>
                    </ul>



                       <h3 id="enterlinks"><?php _e('Follow Links  to display in the follow tab (also needed for follow widget)','share-and-follow'); ?></h3>
                       <table>
                           <thead><tr><th style="width:12em"><?php _e('Show','share-and-follow'); ?></th><th><?php _e('Link Text','share-and-follow'); ?></th><th><?php _e('Link destination','share-and-follow'); ?></th></tr></thead>
                           <tbody>
                            <?php // setup sites to show automatically ?>

                            <?php 
                            global $shareAndFollowFollowIcons;
                            $args = $shareAndFollowFollowIcons; ?>
                            <?php // loop through showing all items after sorting it to be alphabetic ?>
                            <?php sort($args); ?>
                            <?php foreach ($args as $siteToShow) {?>
                               <tr>
                                   <td><img src="<?php echo WP_PLUGIN_URL; ?>/share-and-follow/default/16/<?php getRightImage($siteToShow); ?>.png" height="16px" width="16px" alt="<?php echo $siteToShow; ?>" />
                                    <input type="hidden" name="follow_<?php echo $siteToShow; ?>" value="no" id="follow_<?php echo $siteToShow; ?>">
                                    <input type="checkbox" <?php if ( 'yes' == $devOptions['follow_'.$siteToShow] ) {echo "checked=\"checked\"";} ?> name="follow_<?php echo $siteToShow; ?>" value="yes" id="follow_<?php echo $siteToShow; ?>"><label for="follow_<?php echo $siteToShow; ?>"><?php echo str_replace("_", " ",$siteToShow) ; ?></label>
                                   </td>
                                   <td><input type="text" name="<?php echo $siteToShow; ?>_link_text" id="<?php echo $siteToShow; ?>_link_text" value="<?php echo stripslashes  ($devOptions[$siteToShow.'_link_text']);?>" style="width:150px"/></td>
                                   <td><input type="text" name="<?php echo $siteToShow; ?>_link" id="<?php echo $siteToShow; ?>_link" value="<?php echo $devOptions[$siteToShow.'_link'];?>" style="width:100%"/><td>
                               </tr>
                            <?php } ?>
                                <tr>
                                   <td><img src="<?php echo WP_PLUGIN_URL; ?>/share-and-follow/default/16/rss.png" height="16px" width="16px" alt="rss" />
                                   <input type="hidden" value="no" name="follow_rss" />
                                   <input type="checkbox" <?php if ( 'yes' == $devOptions['follow_rss'] ) {echo "checked=\"checked\"";} ?> name="follow_rss" value="yes" id="follow_rss"><label for="follow_rss">rss</label></td>
                                   <td><input type="text" name="rss_link_text" id="rss_link_text" value="<?php echo stripslashes  ($devOptions['rss_link_text']);?>" style="width:150px"/></td>
                                   <td><?php _e('this link is automatically setup to be your wordpress feed.','share-and-follow'); ?></td>
                               </tr>
                           </tbody>
                       </table>
                       <p><b><em><?php _e('Important', 'share-and-follow') ?>:</em></b> <?php _e('Always put in the full URL with http:// at the beginning when entering a Link Destination.', 'share-and-follow') ?> </p>

                    <input type="submit" name="update_share-and-follow" value="<?php _e('Update Settings', 'share-and-follow') ?>" />
                </div>
        <div style="clear:both;"></div>
      <div style="margin-top:20px;float:left;width:580px;margin-right:10px;"  class="rounded">
             <h1 id="share-image"><?php _e('Setup share image', 'share-and-follow') ?></h1>
             <p><?php _e('By setting up a share image, social networks such as Facebook will choose that share image as its primary image to display on screen in news feeds inside facebook. This is especially useful if the theme is made of only image replacement images rather than HTML tag images, as facebook will now have the opportunity to show an image rather than none at all', 'share-and-follow') ?>.</p>
             <h3><?php _e('Show Share Images', 'share-and-follow') ?></h3>
             <p><?php _e('Add the share image metadata to the head section of your web pages.  Saying "no" will remove the functionality', 'share-and-follow') ?>.</p>
             <p><label for="add_image_link_yes"><input type="radio" id="add_image_link_yes" name="add_image_link" value="true" <?php if ($devOptions['add_image_link'] == "true") {_e('checked="checked"', "shareAndcss");} ?> /><?php _e('Yes', 'share-and-follow') ?></label>&nbsp;&nbsp;&nbsp;&nbsp;
                <label for="add_image_link_no"><input type="radio" id="add_image_link_no" name="add_image_link" value="false" <?php if ($devOptions['add_image_link'] == "false") {_e('checked="checked"', "shareAndcss");} ?>/><?php _e('No', 'share-and-follow') ?></label></p>
             <h3><?php _e('Setup Default Gravatar image', 'share-and-follow') ?> <small><a href="http://gravatar.com/" target="_blank">goto gravatar</a></small></h3>
                <?php _e('enter your email address', 'share-and-follow') ?> <input type="email" name="default_email" id="default_email" value="<?php echo $devOptions['default_email'];?>" /><br />
                <?php _e('alternative default image', 'share-and-follow') ?> <input type="text" name="default_email_image" id="default_email_image" value="<?php echo $devOptions['default_email_image'];?>" />
                <p><?php _e('You can choose an alternative image to display rather than the standard gravatar one, if so, enter the URL here including http://, useful for high volume sites.', 'share-and-follow') ?></p>
                <h3><?php _e('Author Settings', 'share-and-follow') ?></h3>
                    <input type="radio" <?php if ( 'default' == $devOptions['author_defaults'] ) {echo "checked=\"checked\"";} ?> name="author_defaults" value="default" ><label for="author_defaults"><?php _e('Use default gravatar','share-and-follow'); ?></label><br />
                    <input type="radio" <?php if ( 'authors' == $devOptions['author_defaults'] ) {echo "checked=\"checked\"";} ?> name="author_defaults" value="authors" ><label for="author_defaults"><?php _e('Use author email to generate gravatar','share-and-follow'); ?></label><br />
                <h3><?php _e('Site Logo setup', 'share-and-follow') ?></h3>
                <?php _e('enter image URL', 'share-and-follow') ?> <input type="text" name="logo_image_url" value="<?php echo $devOptions['logo_image_url']; ?>" />
                <p><?php _e('Include http:// in the URL, make sure that the image is no larger than 130px wide by 110px high.', 'share-and-follow') ?></p>
                <p><?php _e('<strong><em>Important:</em></strong> the system will default to this image if there is not an image in a post or page that it can find.','share-and-follow')?></p>
                <h3><?php _e('Setup image logic: Who, What, Where.', 'share-and-follow') ?></h3>
                <table class="logic">
                    <tr><th style="width:160px"><?php _e('Type of page', 'share-and-follow') ?></th><th><?php _e('Display logic', 'share-and-follow') ?></th></tr>
                    <tr>
                        <td><?php _e('Pages', 'share-and-follow') ?></td>
                        <td> <input type="radio" <?php if ( 'gravatar' == $devOptions['page_img'] ) {echo "checked=\"checked\"";} ?> name="page_img" value="gravatar" ><label for="page_img"><?php _e('Author Gravatar','share-and-follow'); ?></label><br />
                             <input type="radio" <?php if ( 'logo' == $devOptions['page_img'] ) {echo "checked=\"checked\"";} ?> name="page_img" value="logo" ><label for="page_img"><?php _e('Site Logo','share-and-follow'); ?></label><br />
                             <input type="radio" <?php if ( 'postImage' == $devOptions['page_img'] ) {echo "checked=\"checked\"";} ?> name="page_img" value="postImage" ><label for="page_img"><?php _e('Image from page','share-and-follow'); ?></label><br />
                             <h4><?php _e('optional default image', 'share-and-follow') ?></h4>
                             <input type="text" name="page_image_url" value="<?php echo $devOptions['page_image_url']; ?>" />
                             <br /><small><?php _e('Enter full URL including http:// to the image you want to use. Making the field blank will restore the radio button logic', 'share-and-follow') ?></small>
                        </td>
                    </tr>
                    <tr>
                        <td><?php _e('Posts', 'share-and-follow') ?></td>
                        <td> <input type="radio" <?php if ( 'gravatar' == $devOptions['post_img'] ) {echo "checked=\"checked\"";} ?> name="post_img" value="gravatar" ><label for="post_img"><?php _e('Author Gravatar','share-and-follow'); ?></label><br />
                             <input type="radio" <?php if ( 'logo' == $devOptions['post_img'] ) {echo "checked=\"checked\"";} ?> name="post_img" value="logo" ><label for="post_img"><?php _e('Site Logo','share-and-follow'); ?></label><br />
                             <input type="radio" <?php if ( 'postImage' == $devOptions['post_img'] ) {echo "checked=\"checked\"";} ?> name="post_img" value="postImage" ><label for="post_img"><?php _e('Image from post','share-and-follow'); ?></label><br />
                             <h4><?php _e('optional default image', 'share-and-follow') ?></h4>
                             <input type="text" name="post_image_url" value="<?php echo $devOptions['post_image_url']; ?>" />
                             <br /><small><?php _e('Enter full URL including http:// to the image you want to use. Making the field blank will restore the radio button logic', 'share-and-follow') ?></small>
                        </td>
                    </tr>
                    <tr>
                        <td><?php _e('Homepage', 'share-and-follow') ?></td>
                        <td> <input type="radio" <?php if ( 'gravatar' == $devOptions['homepage_img'] ) {echo "checked=\"checked\"";} ?> name="homepage_img" value="gravatar" ><label for="homepage_img"><?php _e('Default Author Gravatar','share-and-follow'); ?></label><br />
                             <input type="radio" <?php if ( 'logo' == $devOptions['homepage_img'] ) {echo "checked=\"checked\"";} ?> name="homepage_img" value="logo" ><label for="homepage_img"><?php _e('Site Logo','share-and-follow'); ?></label><br />
                             <h4><?php _e('optional default image', 'share-and-follow') ?></h4>
                             <input type="text" name="homepage_image_url" value="<?php echo $devOptions['homepage_image_url']; ?>" />
                             <br /><small><?php _e('Enter full URL including http:// to the image you want to use. Making the field blank will restore the radio button logic', 'share-and-follow') ?></small>
                        </td>
                    </tr>
                    <tr>
                        <td><?php _e('Archive pages', 'share-and-follow') ?></td>
                        <td> <input type="radio" <?php if ( 'gravatar' == $devOptions['archive_img'] ) {echo "checked=\"checked\"";} ?> name="archive_img" value="gravatar" ><label for="archive_img"><?php _e('Default Author Gravatar','share-and-follow'); ?></label><br />
                             <input type="radio" <?php if ( 'logo' == $devOptions['archive_img'] ) {echo "checked=\"checked\"";} ?> name="archive_img" value="logo" ><label for="archive_img"><?php _e('Site Logo','share-and-follow'); ?></label><br />
                             <h4><?php _e('optional default image', 'share-and-follow') ?></h4>
                             <input type="text" name="archive_image_url" value="<?php echo $devOptions['archive_image_url']; ?>" />
                             <br /><small><?php _e('Enter full URL including http:// to the image you want to use. Making the field blank will restore the radio button logic', 'share-and-follow') ?></small>
                        </td>
                    </tr>
                </table>
                <p><?php _e('It is possible to have a specific image setup in a post or page, by adding a custom field called "image_src" and setting an image URL uniquely for that page or post', 'share-and-follow') ?></p>
                <input type="submit" name="update_share-and-follow" value="<?php _e('Update Settings', 'share-and-follow') ?>" />
                <br />
            </div>
          <div style="margin-top:20px;float:left;width:580px;"  class="rounded">
             <h1><?php _e('CSS and style Configuration', 'share-and-follow') ?></h1>
             <h3><?php _e('Use external CSS?', 'share-and-follow') ?></h3>
             <p><?php _e('You have the choice to use an external stylesheet or a style section in the head of the HTML.  If you are using caching and need an ultra fast site, say NO as it will reduce the number of connections.  As it generates the style setion in the head on-the-fly it is slower to do it this way without using caching.  If you need to know, the plugin uses the following external CSS file', 'share-and-follow') ?> <strong>/wp-content/plugins/share-and-follow/css/stylesheet.css</strong>.</p>
                <p><label for="add_css_yes"><input type="radio" id="add_css_yes" name="add_css" value="true" <?php if ($devOptions['add_css'] == "true") {_e('checked="checked"', "shareAndcss");} ?> /><?php _e('Yes', 'share-and-follow') ?></label>&nbsp;&nbsp;&nbsp;&nbsp;
                    <label for="add_css_no"><input type="radio" id="add_css_no" name="add_css" value="false" <?php if ($devOptions['add_css'] == "false") {_e('checked="checked"', "shareAndcss");} ?>/><?php _e('No', 'share-and-follow') ?></label></p>
                <p><?php _e('be careful as it reloads the CSS dynamically evey time there is a change to the admin screen', 'share-and-follow') ?></p>
                <h3><?php _e('Add your own CSS', 'share-and-follow') ?></h3>
                    <textarea cols="20" rows="10" style="width:100%"  name="extra_css" ><?php echo stripslashes($devOptions['extra_css']) ?></textarea>
                <h3><?php _e('Add theme support', 'share-and-follow') ?></h3>
                <p><?php _e('Wordpress has many themes, slowly over time we will be adding more and more CSS packs to support those themes. For now we have a selection of the top ones. <em>Please note</em> that Kubric/Default will work for most themes no matter what the name, as they have been based on this theme originally.', 'share-and-follow') ?></p>
                <select  name="theme_support" id="theme_support" style="width:12em">
                    <option value="none" <?php if ("none" == $devOptions['theme_support']) {echo 'selected="selected"';} ?>>none</option>
                    <option value="default" <?php if ("default" == $devOptions['theme_support']) {echo 'selected="selected"';} ?>>Kubric/Default</option>
                    <option value="choco" <?php if ("choco" == $devOptions['theme_support']) {echo 'selected="selected"';} ?>>ChocoTheme</option>
                    <option value="arjuna" <?php if ("arjuna" == $devOptions['theme_support']) {echo 'selected="selected"';} ?>>Arjuna X</option>
                    <option value="intrepidity" <?php if ("intrepidity" == $devOptions['theme_support']) {echo 'selected="selected"';} ?>>Intrepidity</option>
                    <option value="dojo" <?php if ("dojo" == $devOptions['theme_support']) {echo 'selected="selected"';} ?>>Dojo</option>
                    <option value="thesis" <?php if ("thesis" == $devOptions['theme_support']) {echo 'selected="selected"';} ?>>Thesis</option>
                    <option value="tribune" <?php if ("tribune" == $devOptions['theme_support']) {echo 'selected="selected"';} ?>>Tribune</option>
                    <option value="mymag" <?php if ("mymag" == $devOptions['theme_support']) {echo 'selected="selected"';} ?>>MyMag</option>
                    <option value="frugal" <?php if ("frugal" == $devOptions['theme_support']) {echo 'selected="selected"';} ?>>Frugal</option>
                </select>
                <h3><?php _e('Page Print Support', 'share-and-follow') ?></h3>
                <p><?php _e('Printing a page is different to reading it from the screen. There are many things that do not need to be there on a printed page, such as the menu or navigation.  Use the entry box to provide a comment list of CSS selectors to help control how your printouts look.  By default a few have been added to help you.', 'share-and-follow') ?></p>
                    <input type="text" name="css_print_excludes" value="<?php echo $devOptions['css_print_excludes']; ?>" style="width:80%"/>
                <br />
                <h3><?php _e('Add your own Print CSS ', 'share-and-follow') ?></h3>
                    <textarea cols="20" rows="10" style="width:100%"  name="extra_print_css" ><?php echo stripslashes($devOptions['extra_print_css']) ?></textarea>
                    <input type="submit" name="update_share-and-follow" value="<?php _e('Update Settings', 'share-and-follow') ?>" />
                <br />
            </div>
        <div style="margin-top:20px;float:left;clear:left;width:580px;"  class="rounded">
            <h1><?php _e('Plugin Support', 'share-and-follow') ?></h1>
            <p><?php _e('Some plugins and optional extras for wordpress have different ways of working than the normal wordpress way.  To get over this the makers of these plugins make Hooks and Functions for programmers to use.  Slowly over time we will add more plugin support for plugins that actually have hooks that we can connect to.  Otherwise we will offer support via just a template tag', 'share-and-follow') ?></p>
            <h2><?php _e('WP e-Commerce support', 'share-and-follow') ?></h2>
            <p><?php _e('The location where the share icons show', 'share-and-follow') ?></p>
            <?php $args = array ('wpsc_top_of_products_page'=>__('Top of products page','share-and-follow'), 'wpsc_product_before_description'=>__('Before description','share-and-follow'), 'wpsc_product_addon_after_descr'=>__ ('After Description','share-and-follow'), ); ?>
                <?php foreach($args as $key=>$value){
                    ?>
                <input type="hidden" value="no" name="<?php echo $key; ?>" />
                <input type="checkbox" <?php if ( 'yes' == $devOptions[$key] ) {echo "checked=\"checked\"";} ?> name="<?php echo $key; ?>" value="yes" id="<?php echo $key; ?>"/><label for="<?php echo $key; ?>"><?php echo $value; ?></label><br />
                    <?php
                } ?>
                <br />
                <input type="submit" name="update_share-and-follow" value="<?php _e('Update Settings', 'share-and-follow') ?>" />
                <br />
        </div>
    </form>
        <div class="submit">
        </div>
</div>

     <div style="margin:20px 0 0 10px;float:left;width:580px;"  class="rounded">
                <form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
                <h1 id="reset-settings"><?php _e('Reset settings?', 'share-and-follow') ?></h1>
                <p><?php _e('Want to reset the settings of Share and Follow? click the reset button below to restore the installation defaults.', 'share-and-follow') ?></p>
                <p><?php _e('<em><b>important:</b></em> this will remove all of your settings.  You might want to save this page so you have a listing of your settings before pressing the reset button', 'share-and-follow') ?></p>
                <input type="submit" name="reset_share-and-follow" value="<?php _e('Reset Settings', 'share-and-follow') ?>" />
                </form>
     </div>
<?php } } ?>